Make `dry_run!` mark the object as `readonly!`.

Akinori MUSHA 10 years ago
parent
commit
ba73dd4c8f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      app/concerns/dry_runnable.rb

+ 2 - 0
app/concerns/dry_runnable.rb

@@ -1,5 +1,7 @@
1 1
 module DryRunnable
2 2
   def dry_run!
3
+    readonly!
4
+
3 5
     class << self
4 6
       prepend Sandbox
5 7
     end